package com.ruoyi.finance.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.Date;

/**
 * 行业表对象 t_industry
 * 
 * @author ruoyi
 * @date 2025-02-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TIndustry
{
    private static final long serialVersionUID = 1L;

    /** 行业主键 */
    @Excel(name = "行业主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 行业名称 */
    @Excel(name = "行业名称")
    private String name;

    /** 创建人 */
    @TableField(fill = FieldFill.INSERT)
    private Long createId;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCreateId(Long createId) 
    {
        this.createId = createId;
    }

    public Long getCreateId() 
    {
        return createId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("createId", getCreateId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
